package com.paic.mhis.hcpms.common.validator;

public class ErrorEntry implements java.io.Serializable
{

	private static final long serialVersionUID = 1L;

	public static final ErrorEntry OK = new ErrorEntry("", "");

	private String code;
	private String message;
	private Object key;

	public ErrorEntry(String msg)
	{
		this("N/A", msg);
	}

	public ErrorEntry(String code, String msg)
	{
		this.code = code;
		this.message = msg;
	}
	
	public ErrorEntry(String code, Object key, String msg)
	{
		this(code, msg);
		this.key = key;
	}
	
	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getMessage()
	{
		return message;
	}

	public void setMessage(String message)
	{
		this.message = message;
	}

	public Object getKey()
	{
		return key;
	}

	public void setKey(Object key)
	{
		this.key = key;
	}
}
